<?php

namespace app\admin\model\statistics_model;

use think\Config;
use think\Model;


class Order extends Model
{
    // 表名
    protected $table = 'order';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    public function __construct($data = [])
    {
        //更新读取数据库
        $this->connection = Config::get('database')['database_statistics'];

        parent::__construct($data);
    }
}
